
import { JsonUtil } from "../../../../../extensions/oops-plugin-framework/assets/core/utils/JsonUtil";

export class TableEquipmentConf {
    static TableName: string = "EquipmentConf";

    private data: any;

    init(id: number) {
        var table = JsonUtil.get(TableEquipmentConf.TableName);
        this.data = table[id];
        this.id = id;
    }

    /** 编号【KEY】 */
    id: number = 0;

    /** 装备名称 */
    get name(): string {
        return this.data.name;
    }
    /** 颜色 */
    get color(): number {
        return this.data.color;
    }
    /** 部位 */
    get type(): number {
        return this.data.type;
    }
    /** 部位 */
    get type_e(): string {
        return this.data.type_e;
    }
    /** 图片名称 */
    get imgName(): string {
        return this.data.imgName;
    }
}
    